package expression.v1.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import expression.v1.dao.IExpImageDao;
import expression.v1.model.ExpImage;

@Service(value="expImgServiceImp")
public class ExpImageServiceImp implements IExpImageService {

	@Resource
	private IExpImageDao expImgDaoImp;
	
	@Override
	public int addImage(ExpImage expImage) {
		return expImgDaoImp.addImage(expImage);
	}

	@Override
	public int addImages(List<ExpImage> imgs) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int deleteImage(String id) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int deleteImages(List<String> ids) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<ExpImage> queryImgsByPkgId(String id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<ExpImage> queryImgsByPkgKeyword(String keyword,int from,int limit) {
		return expImgDaoImp.queryImgsByPkgKeyword(keyword,from,limit);
	}

	@Override
	public int countAll(){
		return expImgDaoImp.countAll();
	}
	
	@Override
	public int countByConditions(Object...args){
		return expImgDaoImp.countByConditions(args);
	}
}
